﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Citi.CheckShare.SchedulerUi;
using Citi.RoutineBase;

namespace Citi.CheckShare.ConsoleUi
{
    class Program
    {
        static void Main(string[] args)
        {
            ICurrentAction action = new CurrentAction();

            var parameters = new Dictionary<string, object> { { "RobotUsername", @"lac\lac_bra_ftools" }, { "RobotPassword", "Ferrari3k10" }};
            new SchedulerUi.CheckShares().Start(DateTime.Today, ref action, parameters);

            //var shares = new List<ShareData>{
            //    new ShareData{ CriticalPercent = 90, Path = @"\\gruvnascti0016.wlb.lac.nsroot.net\DATA_GRP1\FinTOOLS", SoeidExecuteAs="ND61955", SpaceMB = 8192, Users="ND61955", WarningPercent =80},
            //    new ShareData{ CriticalPercent = 90, Path = @"\\gruvnascti0009.wlb.lac.nsroot.net\DATA_GRP1\FPCRelat\PTS Report", SoeidExecuteAs="ND61955", SpaceMB = 3096, Users="ND61955", WarningPercent =80},
            //    new ShareData{ CriticalPercent = 90, Path = @"\\gruvnascti0016.wlb.lac.nsroot.net\DATA_GRP1\FTOOLS", SoeidExecuteAs="ND61955", SpaceMB = 3096, Users="ND61955", WarningPercent =80},
            //    new ShareData{ CriticalPercent = 90, Path = @"\\lacbra001fs0009\Data_Grp1\ITFMTOOL", SoeidExecuteAs="ND61955", SpaceMB = 3096, Users="ND61955", WarningPercent =80},
            //};

            //Helpers.XmlHelper.SerializeToXml(shares, @"c:\temp\Shares.xml");
        }
    }

    public class CurrentAction : ICurrentAction
    {
        public string Description
        {
            set { Console.WriteLine(value); }
        }

        public void StartLog(string message)
        {

        }

        public void StartLogOnFile(string filePath)
        {

        }

        public void StopLog()
        {

        }

        public void StopLogOnFile()
        {

        }
    }
}
